package com.example.mrwang.fullscreen;

import android.content.Context;
import android.graphics.Point;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;

/**
 * Created by MrWang on 2017/1/6.
 */
public class MyLie extends LinearLayout {

    public MyLie(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    void setFull(int width){
        ViewGroup.LayoutParams layoutParams =
                getLayoutParams();
        layoutParams.width=width;
        layoutParams.height=width;
        setLayoutParams(layoutParams);
        requestLayout();
        invalidate();
    }
}
